#pragma once
#include <string>
#include<netinet/in.h>
namespace TinyRPC{
class INetAddress{
public:
    INetAddress();
    INetAddress( std::string ip, int port);
    sockaddr_in getSockAddr() const;
    INetAddress(sockaddr_in addr);
    std::string toString() const;
private:
    std::string m_ip;
    int m_port;
    sockaddr_in m_addr;
};
}